package com.fansz.FanszAPI.utils;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * Created by root on 15-10-12.
 */
@ConfigurationProperties(prefix = "user.length")
public class Constants {

    public static String SUCCESS_CODE = "0";

    public static String FAIL_CODE = "1";

    public static String SUCCESS_INFO = "SUCCESS";

    public static String REGISTRR_FAIL = "register fail!";

    public static String USER_TYPE_MOBILE = "0";

    public static String USER_TYPE_MAIL = "1";

    public static String SERVER_ERROR = "40004";

    public static String SERVER_ERROR_INFO = "Server Error";

    public static String PARAM_CHECK_FAIL = "50002";

    public static String PARAM_CHECK_FAIL_INFO = "Parameters Error";

    public static String USER_NOT_EXSIT = "60001";

    public static String USER_NOT_EXSIT_INFO = "User is not exsit";

    public static String USER_EXSIT = "60002";

    public static String USER_EXSIT_INFO = "User is already exist";

    public static String SESSION_TIME_OUT = "40002";

    public static String SESSION_TIME_OUT_INFO = "Session time out";

    public static String IDENTITY_CODE_TIME_OUT = "60003";

    public static String IDENTITY_CODE_TIME_OUT_INFO = "Identity code is time out";

    public static String USER_HAS_EXSITED = "60004";

    public static String USER_HAS_EXSITED_INFO = "User has registed";

    public static String USER_HAS_NOT_EXSITED = "60005";

    public static String USER_HAS_NOT_EXSITED_INFO = "User has not registed";

    public static String TEMPORARY_PASSWORD_ERROR = "60006";

    public static String TEMPORARY_PASSWORD_ERROR_INFO = "Temporary password is not right";

    public static String YOU_ARE_FRIENDS = "60007";

    public static String YOU_ARE_FRIENDS_INFO = "You are already friends";

    public static String YOU_ARE_NOT_FRIENDS = "60008";

    public static String YOU_ARE_NOT_FRIENDS_INFO = "You are not friends";

    public static String IDENTITY_CODE_ERROR = "60009";

    public static String IDENTITY_CODE_ERROR_INFO = "Identity code is not right";

    public static String USER_NOT_RIGHT = "60010";

    public static String USER_NOT_RIGHT_INFO = "User and password are not match";

    public static String SEND_MSG_SUCCESS = ",0";

    public static int mobile = 20;

    public static int mail = 20;

    public static int passWord = 20;

    public static int nickName = 20;

    public static int name = 20;

    public static int deviceId = 64;

    public static int timeStamp = 30;

    public static int topic_content = 500;

    public static int topic_title = 200;

    public static int top_num = 10;

    public static int identityCode = 10;

    public static int ONE_MINUTE = 1000;//一分钟等于1000毫秒

    public static int SEARCH_FRIEDN_KEY_LEN = 30;

    public static int SEARCH_BEGIN_LEN = 10;

    public static int SEARCH_COUNT_LEN = 10;

    public static String MOBILE = "mobile";

    public static String USER_ID = "id";

    public static String FRIENDS_USER_AGREE = "userIdAgree";

    public static String FRIENDS_STATUS = "status";

    public static String FRIENDS_USER_ADD = "userIdAdd";

    public static String FRIENDS_STATUS_DELETE = "0";

    public static String FRIENDS_STATUS_FOLLOW = "1";

    public static String FRIENDS_STATUS_FRIEND = "2";

    public static String FRIENDS_STATUS_GOOD_FRIEND = "3";

    public static String FRIENDS_CREATE_TIME = "createTime";

    public static int PAGE_SIZE_DEFAULT = 20;

    public static int PAGE_BEGIN_DEFAULT = 0;

}
